package com.lanou.dllo.day14;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * Created by dllo on 16/1/26.
 * 数据类
 */
public class MyBean {
    List<String> data;
    List<Integer> type;


    public MyBean() {
        data = new ArrayList<>();
        type = new ArrayList<>();
        Random random = new Random();
        for (int i = 0; i < 100; i++) {
            data.add("这是数据" + i);
            type.add(random.nextInt(2));
        }
    }

    public int getCount() {
        return 100;
    }

    public int getType(int pos) {
        return type.get(pos);
    }


    public String getData(int pos) {
        return data.get(pos);
    }


}
